package cn.tedu.csmall.product.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class AlbumAddNewDTO implements Serializable {
    @NotNull(message = "添加相册失败,必须提交相册名称!")
    @ApiModelProperty(value = "相册名称",example = "小米10的相册",required = true)
    private String name;

    @ApiModelProperty(value = "相册简介",example = "小米10的简介",required = true)
    private String description;

    @ApiModelProperty(value = "排序顺序",example = "12",required = true)
    @NotNull(message = "添加相册失败，必须提交排序序号！")
    @Range(max = 255,message = "添加相册失败,排序序号必须在[0-255]之间")
    private Integer sort;

}
